package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.redis.core.index.Indexed;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "sound") //传音表
public class Sound implements Serializable {

    private static final long serialVersionUID = 6739966698394686523L;

    private Object id; //自增ID
    @Indexed //唯一索引
    private Long userId; //用户ID
    private String StrUrl;  //上传到阿里云的地址
    private Long created; //创建时间


}
